#include <bits/stdc++.h>
#define int long long
using namespace std;
#define in read()
int t, n;
int a[50003];
int in
{
	int cnt = 0, f = 1;
	char ch = 0;
	while (!isdigit(ch))
	{
		ch = getchar();
		if (ch == '-')
			f = -1;
	}
	while (isdigit(ch))
	{
		cnt = cnt * 10 + ch - 48;
		ch = getchar();
	}
	return cnt * f;
}
signed main()
{
	t = in;
	while (t--)
	{
		n = in;
		int tot = 0;
		for (int i = 1; i<= n; i++)
			tot += a[i] = in;
		if (tot != n * (n - 1) / 2)
		{
			printf("The data have been tampered with!\n");
			continue; 
		}
		sort(a + 1, a + n);
		int flag = 0;
		int sum = 0;
		for (int i = 1; i <= n; i++)
		{
			sum += a[i];
			if (sum < i * (i - 1) / 2)
			{
				printf("The data have been tampered with!\n");
				flag = 1;
				break;
			}
		}
		if (flag == 1)
			continue;
		printf("It seems to have no problem.\n");
	}
	return 0;
}
